package com.youkun;

import com.youkun.config.JwtFileter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;

import javax.servlet.Filter;
import java.util.List;

//@SpringBootApplication
public class AngularwebApplication {

	//@Bean
	public FilterRegistrationBean jwtFilter(){
		final FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean();
		filterRegistrationBean.setFilter(new JwtFileter());
		filterRegistrationBean.addUrlPatterns("/rest/*");
		return filterRegistrationBean;
	}

	public static void main(String[] args) {
		//SpringApplication.run(AngularwebApplication.class, args);



	}

}
